<?php
/**
  * Mar 14, 2008
  *
  * Coded by: Ropu
  *
  */
include('login.php');

if(isset($_GET['rate']) && $_GET['rate'] > 0 && $_GET['rate'] <= 5) {
  try{
    $app = new App($_GET['app_id']);
    $h = $_SESSION['hacker'];
    $h->rateApp($app, $_GET['rate']);
  } catch(Exception $e) {
		header('HTTP/1.0 400 Bad Request');
		die("Invalid Info... (Are you trying to hack??)");
  }
  die('ok');
}
header('HTTP/1.0 400 Bad Request');
die("Invalid Info... (Are you trying to hack??)");


